<%
		Select Case Pv_DB_Type
		Case 0
			Echo "开始创建ACCESS数据库表......<br>" : Response.Flush()
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"SystemCtlAction] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] char (50) NOT NULL,"
			Fn_SQL = Fn_SQL & "[SystemAction] char (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtlName] char (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemActionName] char (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Orders] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SystemCtlAction" : Else CreateErr ""& Pv_TablePre &"SystemCtlAction"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"SysUser] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RealName] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Password] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TruePassword] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] number NULL ,"
			Fn_SQL = Fn_SQL & "[UserDisable] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LoginTimes] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RegisterTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LastLoginTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUser" : Else CreateErr ""& Pv_TablePre &"SysUser"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"SysUserGroup] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Founder] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Degree] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUserGroup" : Else CreateErr""& Pv_TablePre &"SysUserGroup"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"SysUserPermission] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemAction] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsAllow] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUserPermission" : Else CreateErr ""& Pv_TablePre &"SysUserPermission"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"SystemLog] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[UserIP] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[LogContent] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemAction] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LogTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LocalUrl] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[FromUrl] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SystemLog" : Else CreateErr ""& Pv_TablePre &"SystemLog"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Navigator] ([ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDefault] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavUrl] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_NavID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavPath] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDepth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Target] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Navigator" : Else CreateErr ""& Pv_TablePre &"Navigator"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"App] ([ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDefault] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavUrl] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_NavID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavPath] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDepth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Target] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"App" : Else CreateErr ""& Pv_TablePre &"App"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Notify] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CNUserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SNUserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyType] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyConfig] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TreatTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[IsTreated] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Notify" : Else CreateErr ""& Pv_TablePre &"Notify"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Regions] ([ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Package] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_Region_ID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Region_Path] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Region_Grade] number NULL ,"
			Fn_SQL = Fn_SQL & "[Local_Name] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[En_Name] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[P_1] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[P_2] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Regions" : Else CreateErr ""& Pv_TablePre &"Regions"
			
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members_Center] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Name] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Value] text (200) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Type] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Default] text (200) NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Center" : Else CreateErr ""& Pv_TablePre &"Members_Center"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Password] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TruePassword] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BigHead] memo NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] memo NULL ,"
			Fn_SQL = Fn_SQL & "[SysUserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Grade] number NULL ,"
			Fn_SQL = Fn_SQL & "[Points] number NULL ,"
			Fn_SQL = Fn_SQL & "[RegTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[LastLoginTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[LoginTimes] number NULL ,"
			Fn_SQL = Fn_SQL & "[Openid] text (36) NULL,"
			Fn_SQL = Fn_SQL & "[IP] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Disable] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members" : Else CreateErr ""& Pv_TablePre &"Members"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members_Addrs] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Name] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Area] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Region] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Country] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Province] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[City] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Address] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Zip] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Telephone] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Mobile] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[IsDefault] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Addrs" : Else CreateErr ""& Pv_TablePre &"Members_Addrs"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members_Feeds] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Feeds" : Else CreateErr ""& Pv_TablePre &"Members_Feeds"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members_GuestBook] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_GuestBook" : Else CreateErr ""& Pv_TablePre &"Members_GuestBook"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Members_Info] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RealName] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Gender] number NULL ,"
			Fn_SQL = Fn_SQL & "[HomeTown] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[MySite] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Birthday] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Mobile] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Telephone] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[QQ] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Height] number NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] number NULL ,"
			Fn_SQL = Fn_SQL & "[MaritalStatus] number NULL ,"
			Fn_SQL = Fn_SQL & "[BloodType] text (10) NULL ,"
			Fn_SQL = Fn_SQL & "[Religion] number NULL ,"
			Fn_SQL = Fn_SQL & "[Smoke] number NULL ,"
			Fn_SQL = Fn_SQL & "[Drink] number NULL ,"
			Fn_SQL = Fn_SQL & "[FavTravel] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavLiving] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavWork] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavPartner] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavCar] text (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Info" : Else CreateErr ""& Pv_TablePre &"Members_Info"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Friend] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[FriendID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Friend" : Else CreateErr ""& Pv_TablePre &"Friend"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"FriendGroup] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupName] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsDefault] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"FriendGroup" : Else CreateErr ""& Pv_TablePre &"FriendGroup"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Visitor] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VisitorID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CTime] text (10) NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Visitor" : Else CreateErr ""& Pv_TablePre &"Visitor"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Collection] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[CollectionName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AllNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultSystem] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultClassID] number NULL ,"
			Fn_SQL = Fn_SQL & "[HandUrls] memo NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls_Start] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls_End] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HtmlCoding] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SbjUrlRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[SbjUrlLinkRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[RepLinks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ThumbnailRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[SaveThumbnail] number NULL ,"
			Fn_SQL = Fn_SQL & "[RepThumbs] memo NULL ,"
			Fn_SQL = Fn_SQL & "[TitleRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[RepTitles] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ContentRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[RepContents] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ContentFormat] number NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPagetype] number NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPageRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPageUrlRule] memo NULL ,"
			Fn_SQL = Fn_SQL & "[RepPageUrls] memo NULL ,"
			Fn_SQL = Fn_SQL & "[FromRule] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AuthorRule] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTimeRule] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultDatetime] date NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemotePic] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemoteFlash] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemoteFile] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Collection" : Else CreateErr ""& Pv_TablePre &"Collection"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"CollectionResult] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CollectionID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultSystem] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultClassID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Title] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Thumbnail] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[From] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Author] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CollectTime] date NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"CollectionResult" : Else CreateErr ""& Pv_TablePre &"CollectionResult"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"ContentSubSystem] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysDefault] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[System] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemName] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CreateTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Orders] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Template] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250)  NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ContentSubSystem" : Else CreateErr ""& Pv_TablePre &"ContentSubSystem"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Content_Images] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SubSystem] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PicUrl] text (250) NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_Images" : Else CreateErr ""& Pv_TablePre &"Content_Images"
			
			'增加5个模型
			For Fn_i=0 To UBound(Fn_Array)
				Fn_SubSystem = Trim(Fn_Array(Fn_i))
				Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Content_"& Fn_SubSystem &"] ("
				Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
				Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassID] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Title] text (250) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitle] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[TitleFontColor] text (7) NULL ,"
				Fn_SQL = Fn_SQL & "[TitleFontType] number NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitleFontColor] text (7) NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitleFontType] number NULL ,"
				Fn_SQL = Fn_SQL & "[From] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Author] text (50) NULL ,"
				Fn_SQL = Fn_SQL & "[PublicTime] date NULL ,"
				Fn_SQL = Fn_SQL & "[Thumbnail] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[UseLinkUrl] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[LinkUrl] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Tags] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[PaginationType] number NULL ,"
				Fn_SQL = Fn_SQL & "[Abstract] memo NULL ,"
				Fn_SQL = Fn_SQL & "[Content] memo NULL ,"
				Fn_SQL = Fn_SQL & "[SlidesFirstImg] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SlidesImgs] memo NULL ,"
				Fn_SQL = Fn_SQL & "[Hits] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Comments] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[TopLine] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[OnTop] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Hot] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Elite] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[CommentSet] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Openness] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Password] text (50) NULL ,"
				Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
				Fn_SQL = Fn_SQL & "[EditTime] date NULL ,"
				Fn_SQL = Fn_SQL & "[Status] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Diggs] number NULL ,"
				Fn_SQL = Fn_SQL & "[LinkVotes] memo NULL ,"
				Fn_SQL = Fn_SQL & "[LinkContents] memo NULL ,"
				Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = 1
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &""
				
				Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class] ("
				Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassName] text (100) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassDepth] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ParentClassID] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassOrder] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassChildNum] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassHide] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassType] number NULL ,"
				Fn_SQL = Fn_SQL & "[ClassUrl] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[ClassLogo] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Icon] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Pic] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[TemplateSet] number NULL ,"
				Fn_SQL = Fn_SQL & "[CategoryTemplate] text (50) NULL ,"
				Fn_SQL = Fn_SQL & "[ContentTemplate] text (50) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
				Fn_SQL = Fn_SQL & "[Recycle] number NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = 1
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class"
				
				Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment] ("
				Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
				Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Path] text (50) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Depth] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ContentID] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
				Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
				Fn_SQL = Fn_SQL & "[HeadImg] text (250) NULL ,"
				Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
				Fn_SQL = Fn_SQL & "[UpdateTime] date NOT NULL ,"
				Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = 1
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment"
			Next

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Delivery] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Expressions] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Price] currency NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Gateway] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Protect] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ProtectRate] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ProtectMinPrice] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[HasCod] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpID] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Delivery" : Else CreateErr ""& Pv_TablePre &"Delivery"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"DeliveryCorp] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpType] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpLogo] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpURL] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"DeliveryCorp" : Else CreateErr ""& Pv_TablePre &"DeliveryCorp"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Delivery_Area] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AreaID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Price] currency NULL ,"
			Fn_SQL = Fn_SQL & "[HasCod] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AreaName_Group] memo NULL ,"
			Fn_SQL = Fn_SQL & "[AreaID_Group] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Expressions] memo NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Delivery_Area" : Else CreateErr ""& Pv_TablePre &"Delivery_Area"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Goods] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsSN] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[Marketable] number NULL ,"
			Fn_SQL = Fn_SQL & "[Price] currency NULL ,"
			Fn_SQL = Fn_SQL & "[Cost] currency NULL ,"
			Fn_SQL = Fn_SQL & "[MktPrice] currency NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] number NULL ,"
			Fn_SQL = Fn_SQL & "[Store] number NULL ,"
			Fn_SQL = Fn_SQL & "[Unit] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[BrandID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Thumbnail] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FirstImg] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Imgs] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Abstract] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] memo NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsModel] number NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] number NULL ,"
			Fn_SQL = Fn_SQL & "[Diggs] number NULL ,"
			Fn_SQL = Fn_SQL & "[Recommend] number NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[Hot] number NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[New] number NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[HomepageRecommend] number NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[AddTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Goods" : Else CreateErr ""& Pv_TablePre &"Goods"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsFieldSet] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Field] text (250) NOT NULL,"'字段
			Fn_SQL = Fn_SQL & "[FieldName] text (250) NOT NULL,"'字段名称
			Fn_SQL = Fn_SQL & "[FieldType] text (250) NULL ,"'字段类型
			Fn_SQL = Fn_SQL & "[Category] number NULL ,"'所属分类
			Fn_SQL = Fn_SQL & "[NotNull] number NOT NULL ,"'是否必须填写
			Fn_SQL = Fn_SQL & "[FieldOptions] memo NULL ,"'备选内容
			Fn_SQL = Fn_SQL & "[FieldTips] text (250) NULL ,"'提示
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsFieldSet" : Else CreateErr ""& Pv_TablePre &"GoodsFieldSet"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsType] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TypeKey] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TypeName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsType" : Else CreateErr ""& Pv_TablePre &"GoodsType"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsAdjunct] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctName] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctType] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MinNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MaxNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PriceType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Price] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disable] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAdjunct" : Else CreateErr ""& Pv_TablePre &"GoodsAdjunct"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsAdjunctGoods] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctGoodsID] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAdjunctGoods" : Else CreateErr ""& Pv_TablePre &"GoodsAdjunctGoods"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsAttr] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrValue] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrPrice] currency NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAttr" : Else CreateErr ""& Pv_TablePre &"GoodsAttr"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsClass] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] number NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] number NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsClass" : Else CreateErr ""& Pv_TablePre &"GoodsClass"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsVirtualClass] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] number NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] number NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsVirtualClass" : Else CreateErr ""& Pv_TablePre &"GoodsVirtualClass"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsComment] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ContentID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsComment" : Else CreateErr ""& Pv_TablePre &"GoodsComment"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsConsult] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ContentID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsConsult" : Else CreateErr ""& Pv_TablePre &"GoodsConsult"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsInVirtualClass] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VirtualClassID] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsInVirtualClass" : Else CreateErr ""& Pv_TablePre &"GoodsInVirtualClass"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsLink] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LinkGoodsID] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsLink" : Else CreateErr ""& Pv_TablePre &"GoodsLink"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsModel] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ModelName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsModel" : Else CreateErr ""& Pv_TablePre &"GoodsModel"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"GoodsModelAttribute] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsModelID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrOrder] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsLinked] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrInputType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrValues] memo NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsModelAttribute" : Else CreateErr ""& Pv_TablePre &"GoodsModelAttribute"
			
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Order] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Confirm] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Status] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayStatus] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShipStatus] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserStatus] number NULL ,"
			Fn_SQL = Fn_SQL & "[IsDelivery] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShippingID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Shipping] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[ShippingArea] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Payment] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] decimal(18, 0) NULL ,"
			Fn_SQL = Fn_SQL & "[Tostr] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ItemNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[Acttime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Createtime] date NULL ,"
			Fn_SQL = Fn_SQL & "[ReferID] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ReferURL] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Name] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Area] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Address] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Zip] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Tel] text (30) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Mobile] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Email] text (150) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Time] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[IsTax] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Tax_Company] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[IsProtect] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] text (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Cur_Rate] currency NULL ,"
			Fn_SQL = Fn_SQL & "[Score_u] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Score_g] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Advance] currency NULL ,"
			Fn_SQL = Fn_SQL & "[Use_Pmt] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Item] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Freight] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Protect] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Tax] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Pmt_Amount] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Payment] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Discount] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Total_Amount] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Final_Amount] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Payed] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Markstar] number NULL ,"
			Fn_SQL = Fn_SQL & "[Memo] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Print_Status] number NULL ,"
			Fn_SQL = Fn_SQL & "[Mark_Text] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LastChangTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Use_RegisterInfo] number NULL ,"
			Fn_SQL = Fn_SQL & "[Mark_Type] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Order" : Else CreateErr ""& Pv_TablePre &"Order"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"OrderGoods] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PacksID] number NULL ,"
			Fn_SQL = Fn_SQL & "[PacksName] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PacksWeight] number NULL ,"
			Fn_SQL = Fn_SQL & "[PacksPrice] number NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsTypeKey] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttr] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttrValue] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsPrice] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrPrice] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsWeight] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ItemNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[Cost] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Price] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Nums] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Score] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Amount] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Delivery_Status] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SendNums] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"OrderGoods" : Else CreateErr ""& Pv_TablePre &"OrderGoods"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"OrderLog] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[SysUserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterName] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LogText] memo NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[BeHavior] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Result] text (20) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"OrderLog" : Else CreateErr ""& Pv_TablePre &"OrderLog"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"PayTradeLog] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TradeType] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TradeNo] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] text (8) NULL ,"
			Fn_SQL = Fn_SQL & "[TradeFee] currency NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] number NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[StartTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[EndTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[BankTradeNo] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Status] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[CreateType] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"PayTradeLog" : Else CreateErr ""& Pv_TablePre &"PayTradeLog"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"PaymentBill] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Account] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PayAccount] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] text (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Money] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayCost] currency NULL ,"
			Fn_SQL = Fn_SQL & "[CurMoney] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] number NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NULL ,"
			Fn_SQL = Fn_SQL & "[TBegin] date NULL ,"
			Fn_SQL = Fn_SQL & "[TEnd] date NULL ,"
			Fn_SQL = Fn_SQL & "[Status] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NULL ,"
			Fn_SQL = Fn_SQL & "[TradeNo] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"PaymentBill" : Else CreateErr ""& Pv_TablePre &"PaymentBill"
			
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Payments] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayMethod] number NULL ,"
			Fn_SQL = Fn_SQL & "[Fee] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentDes] memo NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Payments" : Else CreateErr ""& Pv_TablePre &"Payments"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"RefundBill] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Account] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PayAccount] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] text (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Money] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] text (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] number NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NULL ,"
			Fn_SQL = Fn_SQL & "[TReady] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TSent] date NULL ,"
			Fn_SQL = Fn_SQL & "[TReceived] date NULL ,"
			Fn_SQL = Fn_SQL & "[Status] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"RefundBill" : Else CreateErr ""& Pv_TablePre &"RefundBill"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"ShipBill] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Money] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Type] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsProtect] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Protect] currency NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryID] number NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryName] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_ID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_Name] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_NO] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Name] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Area] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Address] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Zip] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Tel] text (30) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Mobile] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Email] text (150) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Time] text (100) NULL ,"
			Fn_SQL = Fn_SQL & "[TBegin] date NULL ,"
			Fn_SQL = Fn_SQL & "[TEnd] date NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Status] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Reason] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ShipBill" : Else CreateErr ""& Pv_TablePre &"ShipBill"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"ShipItem] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShipBillID] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] text (20) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderGoodsID] number NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsType] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PacksID] number NULL ,"
			Fn_SQL = Fn_SQL & "[PacksName] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttrValue] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Nums] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ShipItem" : Else CreateErr ""& Pv_TablePre &"ShipItem"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Vote] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteTitle] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteMode] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteMode_More] number NULL ,"
			Fn_SQL = Fn_SQL & "[Description] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ResultDescribe] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Joins] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[EditTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Vote" : Else CreateErr ""& Pv_TablePre &"Vote"
			
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"VoteClass] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] number NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] number NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"VoteClass" : Else CreateErr ""& Pv_TablePre &"VoteClass"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"VoteOption] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"VoteOption" : Else CreateErr ""& Pv_TablePre &"VoteOption"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"BankAccount] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AccountOwner] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AccountNO] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Type] text (50) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"BankAccount" : Else CreateErr ""& Pv_TablePre &"BankAccount"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Brand] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BrandName] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BrandLogo] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[BrandUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Abstract] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Brand" : Else CreateErr ""& Pv_TablePre &"Brand"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Ads_Group] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsDefault] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsGroupName] text (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Identify] text (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[StartTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[EndTime] date NULL ,"
			Fn_SQL = Fn_SQL & "[Width] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Height] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Ads_Group" : Else CreateErr ""& Pv_TablePre &"Ads_Group"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Ads_Detail] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsGroupID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsTitle] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AdsUrl] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AdsTxt] memo NULL ,"
			Fn_SQL = Fn_SQL & "[ImageConfig] memo NULL ,"
			Fn_SQL = Fn_SQL & "[FlashConfig] memo NULL ,"
			Fn_SQL = Fn_SQL & "[MideaConfig] memo NULL ,"
			Fn_SQL = Fn_SQL & "[TextConfig] memo NULL ,"
			Fn_SQL = Fn_SQL & "[CodeConfig] memo NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Ads_Detail" : Else CreateErr ""& Pv_TablePre &"Ads_Detail"
			

			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Guestbook] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] memo NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] number NULL ,"
			Fn_SQL = Fn_SQL & "[Username] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Tel] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] text (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Website] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] text (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Guestbook" : Else CreateErr ""& Pv_TablePre &"Guestbook"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"Link] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] text (32) NULL ,"
			Fn_SQL = Fn_SQL & "[LinkName] text (250) NOT NULL,"
			Fn_SQL = Fn_SQL & "[Category] integer NOT NULL,"
			Fn_SQL = Fn_SQL & "[LinkLogo] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[LinkURL] text (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] memo NULL ,"
			Fn_SQL = Fn_SQL & "[Recommend] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Checked] number NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] number NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] date NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Link" : Else CreateErr ""& Pv_TablePre &"Link"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"FieldSet] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Field] text (250) NOT NULL,"'字段
			Fn_SQL = Fn_SQL & "[FieldName] text (250) NOT NULL,"'字段名称
			Fn_SQL = Fn_SQL & "[FieldType] text (250) NULL ,"'字段类型
			Fn_SQL = Fn_SQL & "[System] text (250) NOT NULL ,"'所属系统
			Fn_SQL = Fn_SQL & "[NotNull] number NOT NULL ,"'是否必须填写
			Fn_SQL = Fn_SQL & "[FieldOptions] memo NULL ,"'备选内容
			Fn_SQL = Fn_SQL & "[FieldTips] text (250) NULL ,"'提示
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"FieldSet" : Else CreateErr ""& Pv_TablePre &"FieldSet"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"CModule] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CModuleName] text (250) NOT NULL ,"'名称
			Fn_SQL = Fn_SQL & "[CModuleLabel] text (250) NOT NULL ,"'模板标签
			Fn_SQL = Fn_SQL & "[Content] memo NULL ,"'内容
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"CModule" : Else CreateErr ""& Pv_TablePre &"CModule"
			
			Fn_SQL = "CREATE TABLE ["& Pv_TablePre &"MailTemplate] ("
			Fn_SQL = Fn_SQL & "[ID] integer IDENTITY (1,1) PRIMARY KEY NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MailType] text (250) NOT NULL,"'邮件模板类型
			Fn_SQL = Fn_SQL & "[MailTitle] text (250) NOT NULL,"'邮件标题
			Fn_SQL = Fn_SQL & "[MailBody] memo NOT NULL ,"'邮件内容
			Fn_SQL = Fn_SQL & "[Remarks] text (250) NULL,"'备注
			Fn_SQL = Fn_SQL & "[OrderNum] number NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] number NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = 1
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"MailTemplate" : Else CreateErr ""& Pv_TablePre &"MailTemplate"
			
			
		'**MSSQL安装**
		Case 1
			Echo "开始创建MSSQL数据库表......<br>" : Response.Flush()
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"SystemCtlAction]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"SystemCtlAction]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"SystemCtlAction] ("
			Fn_SQL = Fn_SQL & "[ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemAction] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtlName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemActionName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Orders] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"SystemCtlAction] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"SystemCtlAction] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SystemCtlAction" : Else CreateErr ""& Pv_TablePre &"SystemCtlAction"

			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"SysUser]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"SysUser]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"SysUser] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RealName] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Password] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TruePassword] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[UserDisable] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LoginTimes] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RegisterTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LastLoginTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"SysUser] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"SysUser] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUser" : Else CreateErr ""& Pv_TablePre &"SysUser"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"SysUserGroup]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"SysUserGroup]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"SysUserGroup] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Founder] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Degree] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"SysUserGroup] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"SysUserGroup] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUserGroup" : Else CreateErr""& Pv_TablePre &"SysUserGroup"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"SysUserPermission]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"SysUserPermission]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"SysUserPermission] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemAction] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsAllow] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"SysUserPermission] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"SysUserPermission] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SysUserPermission" : Else CreateErr ""& Pv_TablePre &"SysUserPermission"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"SystemLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"SystemLog]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"SystemLog] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[UserIP] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[LogContent] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemCtl] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemAction] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LogTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LocalUrl] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[FromUrl] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"SystemLog] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"SystemLog] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"SystemLog" : Else CreateErr ""& Pv_TablePre &"SystemLog"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Navigator]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Navigator]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Navigator] ([ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDefault] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavUrl] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_NavID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavPath] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NavDepth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Target] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Navigator] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Navigator] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Navigator" : Else CreateErr ""& Pv_TablePre &"Navigator"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Notify]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Notify]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Notify] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CNUserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SNUserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyType] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyConfig] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[NotifyTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TreatTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[IsTreated] [tinyint] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Notify] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Notify] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Notify" : Else CreateErr ""& Pv_TablePre &"Notify"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Regions]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Regions]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Regions] ([ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Package] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_Region_ID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Region_Path] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Region_Grade] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Local_Name] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[En_Name] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[P_1] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[P_2] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Regions] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Regions] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Regions" : Else CreateErr ""& Pv_TablePre &"Regions"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Members]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Members]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Members] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Password] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TruePassword] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BigHead] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[SysUserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Grade] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Points] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[RegTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[LastLoginTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[LoginTimes] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Disable] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Members] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"User] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members" : Else CreateErr ""& Pv_TablePre &"Members"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Members_Addrs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Members_Addrs]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Members_Addrs] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Name] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Area] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Region] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Country] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Province] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[City] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Address] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Zip] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Telephone] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Mobile] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[IsDefault] [int] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Members_Addrs] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Members_Addrs] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Addrs" : Else CreateErr ""& Pv_TablePre &"Members_Addrs"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Members_Feeds]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Members_Feeds]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Members_Feeds] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Members_Feeds] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Members_Feeds] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Feeds" : Else CreateErr ""& Pv_TablePre &"Members_Feeds"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Members_GuestBook]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Members_GuestBook]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Members_GuestBook] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Members_GuestBook] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Members_GuestBook] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_GuestBook" : Else CreateErr ""& Pv_TablePre &"Members_GuestBook"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Members_Info]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Members_Info]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Members_Info] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[RealName] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Gender] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[HomeTown] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[MySite] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Birthday] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Mobile] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Telephone] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[QQ] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Height] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[MaritalStatus] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[BloodType] [varchar] (10) NULL ,"
			Fn_SQL = Fn_SQL & "[Religion] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Smoke] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Drink] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[FavTravel] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavLiving] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavWork] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavPartner] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FavCar] [nvarchar] (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Members_Info] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Members_Info] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Members_Info" : Else CreateErr ""& Pv_TablePre &"Members_Info"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Friend]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Friend]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Friend] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[FriendID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [tinyint] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Friend] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Friends] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Friend" : Else CreateErr ""& Pv_TablePre &"Friend"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"FriendGroup]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"FriendGroup]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"FriendGroup] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GroupName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsDefault] [tinyint] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"FriendGroup] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"FriendGroup] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"FriendGroup" : Else CreateErr ""& Pv_TablePre &"FriendGroup"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Visitor]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Visitor]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Visitor] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VisitorID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CTime] [varchar] (10) NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Visitor] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Visitor] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY] ")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Visitor" : Else CreateErr ""& Pv_TablePre &"Visitor"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Collection]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Collection]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Collection] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[CollectionName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AllNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultSystem] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultClassID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[HandUrls] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls_Start] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[AutoUrls_End] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HtmlCoding] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SbjUrlRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[SbjUrlLinkRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[RepLinks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ThumbnailRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[SaveThumbnail] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[RepThumbs] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[TitleRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[RepTitles] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ContentRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[RepContents] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ContentFormat] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPagetype] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPageRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ContentPageUrlRule] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[RepPageUrls] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[FromRule] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AuthorRule] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTimeRule] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultDatetime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemotePic] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemoteFlash] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SaveRemoteFile] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Collection] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Collection] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Collection" : Else CreateErr ""& Pv_TablePre &"Collection"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"CollectionResult]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"CollectionResult]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"CollectionResult] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CollectionID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultSystem] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[DefaultClassID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Title] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Thumbnail] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[From] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Author] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CollectTime] [datetime] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"CollectionResult] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"CollectionResult] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"CollectionResult" : Else CreateErr ""& Pv_TablePre &"CollectionResult"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"ContentSubSystem]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"ContentSubSystem]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"ContentSubSystem] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysDefault] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[System] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SystemName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CreateTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Orders] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Template] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"ContentSubSystem] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"ArticleSubSystem] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ContentSubSystem" : Else CreateErr ""& Pv_TablePre &"ContentSubSystem"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Content_Images]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Content_Images]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Content_Images] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SubSystem] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PicUrl] [nvarchar] (250) NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Content_Images] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Content_Images] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_Images" : Else CreateErr ""& Pv_TablePre &"Content_Images"
			
			
			'增加5个模型
			For Fn_i=0 To UBound(Fn_Array)
				Fn_SubSystem = Trim(Fn_Array(Fn_i))
			
				KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"]"
				Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"] ("
				Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassID] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Title] [nvarchar] (250) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitle] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[TitleFontColor] [nvarchar] (7) NULL ,"
				Fn_SQL = Fn_SQL & "[TitleFontType] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitleFontColor] [nvarchar] (7) NULL ,"
				Fn_SQL = Fn_SQL & "[BriefTitleFontType] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[From] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Author] [nvarchar] (50) NULL ,"
				Fn_SQL = Fn_SQL & "[PublicTime] [datetime] NULL ,"
				Fn_SQL = Fn_SQL & "[Thumbnail] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[UseLinkUrl] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[LinkUrl] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Tags] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[PaginationType] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[Abstract] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[Content] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[SlidesFirstImg] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SlidesImgs] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[Hits] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Comments] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[TopLine] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[OnTop] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Hot] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Elite] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[CommentSet] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Openness] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Password] [nvarchar] (50) NULL ,"
				Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[EditTime] [datetime] NULL ,"
				Fn_SQL = Fn_SQL & "[Status] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Diggs] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[LinkVotes] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[LinkContents] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Content_"& Fn_SubSystem &"] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &""
				
				KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class]"
				Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class] ("
				Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassName] [nvarchar] (100) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassDepth] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ParentClassID] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassOrder] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassChildNum] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassHide] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ClassType] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[ClassUrl] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[ClassLogo] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Icon] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Pic] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[TemplateSet] [int] NULL ,"
				Fn_SQL = Fn_SQL & "[CategoryTemplate] [nvarchar] (50) NULL ,"
				Fn_SQL = Fn_SQL & "[ContentTemplate] [nvarchar] (50) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
				Fn_SQL = Fn_SQL & "[Recycle] [int] NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Class"
				
				KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment]"
				Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment] ("
				Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Path] [varchar] (50) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Depth] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[ContentID] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
				Fn_SQL = Fn_SQL & "[HeadImg] [nvarchar] (250) NULL ,"
				Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[UpdateTime] [datetime] NOT NULL ,"
				Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
				Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
				Fn_SQL = Fn_SQL & ")"
				Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
				Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
				Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
				If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment" : Else CreateErr ""& Pv_TablePre &"Content_"& Fn_SubSystem &"_Comment"
				
			Next

			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Delivery]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Delivery]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Delivery] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Expressions] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Price] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Gateway] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Protect] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ProtectRate] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ProtectMinPrice] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[HasCod] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpID] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Delivery] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Delivery] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Delivery" : Else CreateErr ""& Pv_TablePre &"Delivery"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"DeliveryCorp]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"DeliveryCorp]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"DeliveryCorp] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpType] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpLogo] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CorpURL] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"DeliveryCorp] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"DeliveryCorp] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"DeliveryCorp" : Else CreateErr ""& Pv_TablePre &"DeliveryCorp"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Delivery_Area]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Delivery_Area]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Delivery_Area] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AreaID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Price] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[HasCod] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AreaName_Group] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[AreaID_Group] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Expressions] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Delivery_Area] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Delivery_Area] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Delivery_Area" : Else CreateErr ""& Pv_TablePre &"Delivery_Area"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Goods]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Goods]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Goods] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsSN] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[Marketable] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Price] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[Cost] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[MktPrice] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] [float] NULL ,"
			Fn_SQL = Fn_SQL & "[Store] [float] NULL ,"
			Fn_SQL = Fn_SQL & "[Unit] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[BrandID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Thumbnail] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[FirstImg] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Imgs] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Abstract] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsModel] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Diggs] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Recommend] [int] NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[Hot] [int] NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[New] [int] NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[HomepageRecommend] [int] NULL DEFAULT 0,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Goods] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Goods] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Goods" : Else CreateErr ""& Pv_TablePre &"Goods"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsFieldSet]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsFieldSet]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsFieldSet] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Field] [nvarchar] (250) NOT NULL,"'字段
			Fn_SQL = Fn_SQL & "[FieldName] [nvarchar] (250) NOT NULL,"'字段名称
			Fn_SQL = Fn_SQL & "[FieldType] [nvarchar] (250) NULL ,"'字段类型
			Fn_SQL = Fn_SQL & "[Category] [int] NULL ,"'所属分类
			Fn_SQL = Fn_SQL & "[NotNull] [int] NOT NULL ,"'是否必须填写
			Fn_SQL = Fn_SQL & "[FieldOptions] [ntext] NULL ,"'备选内容
			Fn_SQL = Fn_SQL & "[FieldTips] [nvarchar] (250) NULL ,"'提示
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsFieldSet] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsFieldSet] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsFieldSet" : Else CreateErr ""& Pv_TablePre &"GoodsFieldSet"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsType]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsType]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsType] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TypeKey] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TypeName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsType] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsType] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsType" : Else CreateErr ""& Pv_TablePre &"GoodsType"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsAdjunct]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsAdjunct]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsAdjunct] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctType] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MinNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MaxNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PriceType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Price] [float] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disable] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsAdjunct] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsAdjunct] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAdjunct" : Else CreateErr ""& Pv_TablePre &"GoodsAdjunct"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsAdjunctGoods]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsAdjunctGoods]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsAdjunctGoods] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdjunctGoodsID] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsAdjunctGoods] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsAdjunctGoods] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAdjunctGoods" : Else CreateErr ""& Pv_TablePre &"GoodsAdjunctGoods"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsAttr]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsAttr]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsAttr] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrValue] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrPrice] [money] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsAttr] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsAttr] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsAttr" : Else CreateErr ""& Pv_TablePre &"GoodsAttr"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsClass]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsClass] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsClass] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsClass] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsClass" : Else CreateErr ""& Pv_TablePre &"GoodsClass"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsVirtualClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsVirtualClass]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsVirtualClass] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsVirtualClass] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsVirtualClass] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsVirtualClass" : Else CreateErr ""& Pv_TablePre &"GoodsVirtualClass"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsComment]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsComment]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsComment] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ContentID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsComment] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsComment] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsComment" : Else CreateErr ""& Pv_TablePre &"GoodsComment"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsConsult]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsConsult]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsConsult] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Path] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Depth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ContentID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[HeadImg] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UpdateTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsConsult] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsConsult] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsConsult" : Else CreateErr ""& Pv_TablePre &"GoodsConsult"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsInVirtualClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsInVirtualClass]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsInVirtualClass] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VirtualClassID] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsInVirtualClass] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsInVirtualClass] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsInVirtualClass" : Else CreateErr ""& Pv_TablePre &"GoodsInVirtualClass"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsLink]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsLink]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsLink] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LinkGoodsID] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsLink] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsLink] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsLink" : Else CreateErr ""& Pv_TablePre &"GoodsLink"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsModel]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"GoodsModel]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsModel] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ModelName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsModel] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsModel] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsModel" : Else CreateErr ""& Pv_TablePre &"GoodsModel"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"GoodsModelAttribute]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"GoodsModelAttribute]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"GoodsModelAttribute] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsModelID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrOrder] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsLinked] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrInputType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrValues] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"GoodsModelAttribute] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"GoodsModelAttribute] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"GoodsModelAttribute" : Else CreateErr ""& Pv_TablePre &"GoodsModelAttribute"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Order]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Order]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Order] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Confirm] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Status] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayStatus] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShipStatus] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserStatus] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[IsDelivery] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShippingID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Shipping] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[ShippingArea] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Payment] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] [decimal](18, 0) NULL ,"
			Fn_SQL = Fn_SQL & "[Tostr] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ItemNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Acttime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Createtime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[ReferID] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ReferURL] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Name] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Area] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Address] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Zip] [nvarchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Tel] [nvarchar] (30) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Mobile] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Email] [nvarchar] (150) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Time] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[IsTax] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Tax_Company] [varchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[IsProtect] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] [varchar] (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Cur_Rate] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[Score_u] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Score_g] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Advance] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[Use_Pmt] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Item] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Freight] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Protect] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Tax] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Pmt_Amount] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Payment] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Discount] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Total_Amount] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Final_Amount] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Payed] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Markstar] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Memo] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Print_Status] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Mark_Text] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LastChangTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Use_RegisterInfo] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Mark_Type] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Order] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Order] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Order" : Else CreateErr ""& Pv_TablePre &"Order"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"OrderGoods]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"OrderGoods]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"OrderGoods] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PacksID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[PacksName] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PacksWeight] [float] NULL ,"
			Fn_SQL = Fn_SQL & "[PacksPrice] [float] NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsTypeKey] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttr] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttrValue] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsPrice] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AttrPrice] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsWeight] [float] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ItemNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Cost] [float] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Price] [float] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Weight] [float] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Nums] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Score] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Amount] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Delivery_Status] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SendNums] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"OrderGoods] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"OrderGoods] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"OrderGoods" : Else CreateErr ""& Pv_TablePre &"OrderGoods"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"OrderLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"OrderLog]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"OrderLog] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[SysUserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterName] [nvarchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[LogText] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[BeHavior] [nvarchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Result] [nvarchar] (20) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"OrderLog] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"OrderLog] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"OrderLog" : Else CreateErr ""& Pv_TablePre &"OrderLog"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"PayTradeLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"PayTradeLog]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"PayTradeLog] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TradeType] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TradeNo] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] [varchar] (8) NULL ,"
			Fn_SQL = Fn_SQL & "[TradeFee] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[StartTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[EndTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[MemberID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[BankTradeNo] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Status] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[CreateType] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"PayTradeLog] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"PayTradeLog] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"PayTradeLog" : Else CreateErr ""& Pv_TablePre &"PayTradeLog"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"PaymentBill]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"PaymentBill]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"PaymentBill] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Account] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PayAccount] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] [varchar] (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Money] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayCost] [money] NULL ,"
			Fn_SQL = Fn_SQL & "[CurMoney] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NULL ,"
			Fn_SQL = Fn_SQL & "[TBegin] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[TEnd] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Status] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[TradeNo] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"PaymentBill] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"PaymentBill] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"PaymentBill" : Else CreateErr ""& Pv_TablePre &"PaymentBill"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Payments]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Payments]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Payments] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayMethod] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Fee] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentDes] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Payments] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Payments] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Payments" : Else CreateErr ""& Pv_TablePre &"Payments"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"RefundBill]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"RefundBill]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"RefundBill] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] [char] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Account] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[PayAccount] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Currency] [varchar] (8) NULL ,"
			Fn_SQL = Fn_SQL & "[Money] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PayType] [varchar] (50) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PaymentName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NULL ,"
			Fn_SQL = Fn_SQL & "[TReady] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[TSent] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[TReceived] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Status] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"RefundBill] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"RefundBill] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"RefundBill" : Else CreateErr ""& Pv_TablePre &"RefundBill"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"ShipBill]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"ShipBill]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"ShipBill] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BillID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Money] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Type] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IsProtect] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Cost_Protect] [money] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[DeliveryName] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_ID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_Name] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[Logi_NO] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Name] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Area] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Address] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Zip] [nvarchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Tel] [nvarchar] (30) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Mobile] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Email] [nvarchar] (150) NULL ,"
			Fn_SQL = Fn_SQL & "[Ship_Time] [nvarchar] (100) NULL ,"
			Fn_SQL = Fn_SQL & "[TBegin] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[TEnd] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[OperaterID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Status] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Reason] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"ShipBill] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"ShipBill] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ShipBill" : Else CreateErr ""& Pv_TablePre &"ShipBill"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"ShipItem]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"ShipItem]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"ShipItem] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ShipBillID] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderID] [varchar] (20) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderGoodsID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsType] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Config] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[PacksID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[PacksName] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsBN] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsName] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[GoodsAttrValue] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Nums] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"ShipItem] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"ShipItem] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"ShipItem" : Else CreateErr ""& Pv_TablePre &"ShipItem"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Vote]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Vote]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Vote] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteTitle] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteMode] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteMode_More] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Description] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ResultDescribe] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Joins] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[EditTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Vote] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Vote] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Vote" : Else CreateErr ""& Pv_TablePre &"Vote"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"VoteClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"VoteClass]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"VoteClass] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassName] [varchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassDepth] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ParentClassID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassOrder] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassHide] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ClassType] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[ClassUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[ClassLogo] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Icon] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Pic] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[TemplateSet] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[CategoryTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[ContentTemplate] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"VoteClass] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"VoteClass] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"VoteClass" : Else CreateErr ""& Pv_TablePre &"VoteClass"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"VoteOption]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"VoteOption]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"VoteOption] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[VoteNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"VoteOption] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"VoteOption] PRIMARY KEY  CLUSTERED ([ID])  ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"VoteOption" : Else CreateErr ""& Pv_TablePre &"VoteOption"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"BankAccount]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"BankAccount]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"BankAccount] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Bank] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AccountOwner] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AccountNO] [varchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Type] [varchar] (50) NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"BankAccount] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"BankAccount] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"BankAccount" : Else CreateErr ""& Pv_TablePre &"BankAccount"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Brand]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].["& Pv_TablePre &"Brand]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Brand] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BrandName] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[BrandLogo] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[BrandUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SeoTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[SeoUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaKeywords] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[MetaDescription] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Abstract] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[Intro] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Brand] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Brand] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Brand" : Else CreateErr ""& Pv_TablePre &"Brand"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Ads_Group]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"Ads_Group]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Ads_Group] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsDefault] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsGroupName] [nvarchar] (100) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Identify] [varchar] (20) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[StartTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[EndTime] [datetime] NULL ,"
			Fn_SQL = Fn_SQL & "[Width] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Height] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Ads_Group] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Ads_Group] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Ads_Group" : Else CreateErr ""& Pv_TablePre &"Ads_Group"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Ads_Detail]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"Ads_Detail]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Ads_Detail] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1, 1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsGroupID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[AdsTitle] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AdsUrl] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AdsTxt] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[ImageConfig] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[FlashConfig] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[MideaConfig] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[TextConfig] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[CodeConfig] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Ads_Detail] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Ads_Detail] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Ads_Detail" : Else CreateErr ""& Pv_TablePre &"Ads_Detail"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Guestbook]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"Guestbook]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Guestbook] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[P_ID] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[ChildNum] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Content] [ntext] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[UserID] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[Username] [nvarchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Tel] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Email] [varchar] (50) NULL ,"
			Fn_SQL = Fn_SQL & "[Website] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[IP] [varchar] (64) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Disabled] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Guestbook] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Guestbook] PRIMARY KEY  CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Guestbook" : Else CreateErr ""& Pv_TablePre &"Guestbook"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"Link]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"Link]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"Link] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[SysID] [varchar] (32) NULL ,"
			Fn_SQL = Fn_SQL & "[LinkName] [nvarchar] (250) NOT NULL,"
			Fn_SQL = Fn_SQL & "[Category] [int] NOT NULL,"
			Fn_SQL = Fn_SQL & "[LinkLogo] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[LinkURL] [nvarchar] (250) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Remarks] [ntext] NULL ,"
			Fn_SQL = Fn_SQL & "[Recommend] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Checked] [int] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Hits] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"
			Fn_SQL = Fn_SQL & "[AddTime] [datetime] NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"Link] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"Link] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"Link" : Else CreateErr ""& Pv_TablePre &"Link"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"FieldSet]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"FieldSet]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"FieldSet] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[Field] [nvarchar] (250) NOT NULL,"'字段
			Fn_SQL = Fn_SQL & "[FieldName] [nvarchar] (250) NOT NULL,"'字段名称
			Fn_SQL = Fn_SQL & "[FieldType] [nvarchar] (250) NULL ,"'字段类型
			Fn_SQL = Fn_SQL & "[System] [nvarchar] (250) NOT NULL ,"'所属系统
			Fn_SQL = Fn_SQL & "[NotNull] [int] NOT NULL ,"'是否必须填写
			Fn_SQL = Fn_SQL & "[FieldOptions] [ntext] NULL ,"'备选内容
			Fn_SQL = Fn_SQL & "[FieldTips] [nvarchar] (250) NULL ,"'提示
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"FieldSet] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"FieldSet] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"FieldSet" : Else CreateErr ""& Pv_TablePre &"FieldSet"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"CModule]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"CModule]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"CModule] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[CModuleName] [nvarchar] (250) NOT NULL ,"'名称
			Fn_SQL = Fn_SQL & "[CModuleLabel] [nvarchar] (250) NOT NULL ,"'模板标签
			Fn_SQL = Fn_SQL & "[Content] [ntext] NULL ,"'内容
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"CModule] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"CModule] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"CModule" : Else CreateErr ""& Pv_TablePre &"CModule"
			
			KnifeCMS.DB.Execute "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].["& Pv_TablePre &"MailTemplate]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].["& Pv_TablePre &"MailTemplate]"
			Fn_SQL = "CREATE TABLE [dbo].["& Pv_TablePre &"MailTemplate] ("
			Fn_SQL = Fn_SQL & "[ID] [int] IDENTITY (1,1) NOT NULL ,"
			Fn_SQL = Fn_SQL & "[MailType] [nvarchar] (250) NOT NULL,"'字段
			Fn_SQL = Fn_SQL & "[MailTitle] [nvarchar] (250) NOT NULL,"'字段名称
			Fn_SQL = Fn_SQL & "[MailBody] [ntext] NOT NULL ,"'备选内容
			Fn_SQL = Fn_SQL & "[Remarks] [nvarchar] (250) NULL ,"
			Fn_SQL = Fn_SQL & "[OrderNum] [int] NULL ,"'排序
			Fn_SQL = Fn_SQL & "[Recycle] [int] NOT NULL"
			Fn_SQL = Fn_SQL & ")"
			Fn_SQL = Fn_SQL & "ON [PRIMARY]"
			Fn_ResultCT = KnifeCMS.DB.Execute(Fn_SQL)
			Fn_ResultAT = KnifeCMS.DB.Execute("ALTER TABLE [dbo].["& Pv_TablePre &"MailTemplate] WITH NOCHECK ADD CONSTRAINT [PK_"& Pv_TablePre &"MailTemplate] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]")
			If Fn_ResultCT=1 And Fn_ResultAT=1 Then CreateOK ""& Pv_TablePre &"MailTemplate" : Else CreateErr ""& Pv_TablePre &"MailTemplate"
			
		End Select
%>